home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / window4c.arc / WINDOWS.DOC < prev    next >
Encoding:
Text File  |  1985-02-08  |  28.0 KB  |  1,259 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                                                          DATE:12-30-84
  8.                                                          BY:BOYD
  9.                                                          DOC #:  12.0000
  10.  
  11.      FUNCTION NAME:minor_box(upper_row,upper_col,lower_row,lower_col)
  12.  
  13.      SYNOPSIS:
  14.                ARGUMENT(S):                            ARGUMENT DESC:
  15.  
  16.      minor_box(upper_row,upper_col,lower_row,lower_col);
  17.  
  18.      int       upper_row, 
  19.                upper_col, 
  20.                lower_row, 
  21.                lower_col; 
  22.       
  23.      
  24.      
  25.      
  26.  
  27.      DESCRIPTION:
  28.  
  29.      This function works exactly like box() function except it draws a 
  30.      box in the single line drawing characters. Like 
  31.       
  32.                              ┌─┐ 
  33.                              │ │ 
  34.                              └─┘ 
  35.      
  36.  
  37.      RETURNS:
  38.  
  39.      NOTHING 
  40.      
  41.      
  42.  
  43.      CAUTIONS:
  44.  
  45.      All parameters which are passed to the function must ve valid.  
  46.      Seee box() function for details 
  47.      
  48.  
  49.      SAMPLE CALL:
  50.  
  51.      main() 
  52.       
  53.      { 
  54.       
  55.       
  56.         minor_box(10,10,20,70);/* This gives a box starting on row 10 
  57.                                   column 10 as the upper left corner 
  58.                                   and ends with row 20 column 70 as the 
  59.                                   bottom right hand corner */ 
  60.       
  61.      }
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                                                          DATE:12-30-84
  71.                                                          BY:BOYD
  72.                                                          DOC #:  11.0000
  73.  
  74.      FUNCTION NAME:box(upper_row,upper_col,lower_row,lower_col)
  75.  
  76.      SYNOPSIS:
  77.                ARGUMENT(S):                            ARGUMENT DESC:
  78.  
  79.      box(upper_row,upper_col,lower_row,lower_col);
  80.  
  81.      int        upper_row,          /* upper corner of box */ 
  82.                 upper_col, 
  83.                 lower_row,          /* lower corner of box */ 
  84.                 lower_col; 
  85.       
  86.      
  87.      
  88.      
  89.  
  90.      DESCRIPTION:
  91.  
  92.      This function draws a box using the double line drawing 
  93.      characters.  The smallest box which can be drawn can have the 
  94.      arguments of 
  95.           box(upper_row,upper_col,upper_row+1,upper_col+1); 
  96.       
  97.      This gives a box like ╔╗ 
  98.                            ╚╝
  99.  
  100.      RETURNS:
  101.  
  102.      NOTHING 
  103.      
  104.      
  105.  
  106.      CAUTIONS:
  107.  
  108.      This function does no checking for valid parameters.  All 
  109.      parameters must be valid.  The maximum size box can only be 
  110.      box(1,1,25,80);
  111.  
  112.      SAMPLE CALL:
  113.  
  114.      main() 
  115.       
  116.      { 
  117.       
  118.       
  119.           box(10,10,20,70);    /* This gives a box starting on row 10 
  120.                                   column 10 as the upper left corner 
  121.                                   and ends with row 20 column 70 as the 
  122.                                   bottom right hand corner */ 
  123.       
  124.      }
  125.      
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.                                                          DATE:12-30-84
  133.                                                          BY:BOYD
  134.                                                          DOC #:  13.0000
  135.  
  136.      FUNCTION NAME:window(upper_row,upper_col,lower_row,lower_col)
  137.  
  138.      SYNOPSIS:
  139.                ARGUMENT(S):                            ARGUMENT DESC:
  140.  
  141.      window(upper_row,upper_col,lower_row,lower_col)
  142.  
  143.      int            upper_row, 
  144.                     upper_col, 
  145.                     lower_row, 
  146.                     lower_col; 
  147.       
  148.      
  149.      
  150.      
  151.  
  152.      DESCRIPTION:
  153.  
  154.      This function opens a window from the center point of the passed 
  155.      arguments.  It first starts by drawing a small box and then 
  156.      expanding the box until the designated size has been met.  This 
  157.      function gives the effect that the box came from no where and is 
  158.      exploding. 
  159.      
  160.      
  161.  
  162.      RETURNS:
  163.  
  164.      NOTHING 
  165.      
  166.      
  167.  
  168.      CAUTIONS:
  169.  
  170.      The smallest window which can be opened is: 
  171.      window(upper_row,upper_col,upper_row+2,upper_col+2); 
  172.      Arguments are not value checked for valid parameters.
  173.  
  174.      SAMPLE CALL:
  175.  
  176.      main() 
  177.      { 
  178.       
  179.            window(10,10,20,70);    /*  This function will start by 
  180.                                        drawing a small box and then 
  181.                                        drawing a larger one, erasing 
  182.                                        the smaller one, until the box 
  183.                                        is the size of passed parameters 
  184.                                    */ 
  185.       
  186.      }
  187.      
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.                                                          DATE:12-30-84
  195.                                                          BY:BOYD
  196.                                                          DOC #:  14.0000
  197.  
  198.      FUNCTION NAME:active(wind);
  199.  
  200.      SYNOPSIS:
  201.                ARGUMENT(S):                            ARGUMENT DESC:
  202.  
  203.      active(wind);
  204.  
  205.      int   wind;              /*  ID number passed from the opening of 
  206.                                   a window */ 
  207.      
  208.      
  209.      
  210.      
  211.      
  212.      
  213.  
  214.      DESCRIPTION:
  215.  
  216.      This function will make the passed wind# active on the screen.  
  217.      For instance, if there are multiple windows layered upon each 
  218.      other then this function will take the specified window and make 
  219.      it the active window.  This will restore what was underneath the 
  220.      specified window and make it the top window on the screen. 
  221.      
  222.      
  223.  
  224.      RETURNS:
  225.  
  226.      RETURNS -1 if you try to activate a window when there are no open 
  227.      windows.  RETURNS a 0 if you try to activate the current window.
  228.      
  229.  
  230.      CAUTIONS:
  231.  
  232.      This function does not check if the window number which is passed 
  233.      is valid!  You must supply a valid window number.
  234.      
  235.  
  236.      SAMPLE CALL:
  237.  
  238.      main()
  239.      {
  240.         int  wind,wind2;
  241.  
  242.             wind=open_window(10,10,20,70);
  243.             wind2=open_window(15,40,18,70);
  244.             activate(wind);
  245.  
  246.             close_window(wind2);
  247.             close_window(wind);
  248.  
  249.      }
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.                                                          DATE:12-30-84
  258.                                                          BY:BOYD
  259.                                                          DOC #:  15.0000
  260.  
  261.      FUNCTION NAME:open_window(upper_row,upper_col,lower_row,lower_col)
  262.  
  263.      SYNOPSIS:
  264.                ARGUMENT(S):                            ARGUMENT DESC:
  265.  
  266.      open_window(upper_row,upper_col,lower_row,lower_col);
  267.  
  268.      int            upper_row, 
  269.                     upper_col, 
  270.                     lower_row, 
  271.                     lower_col; 
  272.      
  273.      
  274.      
  275.      
  276.  
  277.      DESCRIPTION:
  278.  
  279.      This function saves what ever is on the screen in the area which 
  280.      is passed in the arguments.  It then calls window() which opens a 
  281.      window to the size specified in the arguments.  It will then clear 
  282.      the window and locate the cursor in the virtual home position (ROW 
  283.      = 1, COLUMN = 1).  The window will have the color specied with the 
  284.      last color() function call. 
  285.      
  286.  
  287.      RETURNS:
  288.  
  289.      RETURNS -1 if there isn't enough memory or you already have 255 
  290.      windows open. 
  291.      RETURNS a valid window ID which is used in other window calls
  292.  
  293.      CAUTIONS:
  294.  
  295.      The specified window must be closed after the window is opened.  
  296.      See close_window() for details. 
  297.      
  298.  
  299.      SAMPLE CALL:
  300.  
  301.      main() 
  302.      { 
  303.       
  304.          int wind; 
  305.                    wind=open_window(10,10,20,70); 
  306.                    close_window(wind); 
  307.       
  308.      } 
  309.      
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.                                                          DATE:12-30-84
  317.                                                          BY:BOYD
  318.                                                          DOC #:  16.0000
  319.  
  320.      FUNCTION NAME:close_window(wind)
  321.  
  322.      SYNOPSIS:
  323.                ARGUMENT(S):                            ARGUMENT DESC:
  324.  
  325.      close_window(wind);
  326.  
  327.      int             wind;          /*  This is a valid window ID */ 
  328.      
  329.      
  330.      
  331.      
  332.      
  333.      
  334.      
  335.  
  336.      DESCRIPTION:
  337.  
  338.      This function will close this window restoring everything which 
  339.      was underneath. 
  340.      
  341.      
  342.      
  343.      
  344.      
  345.  
  346.      RETURNS:
  347.  
  348.      RETURNS -1 if there are no open windows on the screen. 
  349.      
  350.      
  351.  
  352.      CAUTIONS:
  353.  
  354.      You must supply a valid window ID.  See open_window() for details. 
  355.      
  356.      
  357.  
  358.      SAMPLE CALL:
  359.  
  360.      main() 
  361.      { 
  362.       
  363.            int   wind; 
  364.                          wind=open_window(10,10,20,70); 
  365.       
  366.                          close_window(wind); 
  367.       
  368.      } 
  369.      
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.                                                          DATE:12-30-84
  377.                                                          BY:BOYD
  378.                                                          DOC #:  17.0000
  379.  
  380.      FUNCTION NAME:save_restore(u_row,u_col,l_row,l_col,address,flag)
  381.  
  382.      SYNOPSIS:
  383.                ARGUMENT(S):                            ARGUMENT DESC:
  384.  
  385.      save_restore(u_row,u_col,l_row,l_col,address,flag);
  386.  
  387.      int        u_row, 
  388.                 u_col,                   /*  upper row & col and */ 
  389.                 l_row,                   /*  lower row & col */ 
  390.                 l_col, 
  391.                 flag;                    /*  0==save   1==restore */ 
  392.       
  393.      char       *address;                /*  char array address to save 
  394.                                              screen at */
  395.  
  396.      DESCRIPTION:
  397.  
  398.      This function will save or restore the specified are to or from 
  399.      the address which is passed to it. 
  400.       
  401.      This function automatically senses for graphics / monochrome 
  402.      monitor. 
  403.      
  404.      
  405.  
  406.      RETURNS:
  407.  
  408.      NOTHING 
  409.      
  410.      
  411.  
  412.      CAUTIONS:
  413.  
  414.      This function must be passed valid arguments and addresses.
  415.      
  416.      
  417.  
  418.      SAMPLE CALL:
  419.  
  420.  
  421.      main()
  422.  
  423.      {
  424.  
  425.      char    array[4000];
  426.  
  427.      save_restore(10,10,20,70,0,array);   /* save screen part */
  428.      save_restore(10,10,20,70,1,array);   /* restore screen part */
  429.  
  430.      }
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.                                                          DATE:12-30-84
  439.                                                          BY:BOYD
  440.                                                          DOC #:  18.0000
  441.  
  442.      FUNCTION NAME:scroll_window(wind,lines,direction)
  443.  
  444.      SYNOPSIS:
  445.                ARGUMENT(S):                            ARGUMENT DESC:
  446.  
  447.      scroll_window(wind,lines,direction);
  448.  
  449.      int            wind,              /* valid window ID number */ 
  450.                     lines,             /* count of lines, 0 == blank */ 
  451.                     direction;         /* 0 == up   1 == down */ 
  452.      
  453.      
  454.      
  455.      
  456.      
  457.  
  458.      DESCRIPTION:
  459.  
  460.      This function will scroll inside the specified window.  It will 
  461.      scroll the specified amount of lines in the specified direction 
  462.      using the color of the specific window, not the current color. 
  463.      
  464.      
  465.      
  466.      
  467.  
  468.      RETURNS:
  469.  
  470.      NOTHING 
  471.      
  472.      
  473.  
  474.      CAUTIONS:
  475.  
  476.      Must pass valid arguments.
  477.      
  478.      
  479.  
  480.      SAMPLE CALL:
  481.  
  482.      main() 
  483.      { 
  484.           int  wind; 
  485.                   wind=open_window(10,10,20,70); 
  486.                   scroll_window(wind,3,0);  /* scrolls the window 3 
  487.                                                lines upward */ 
  488.                   close_window(wind); 
  489.       
  490.      }
  491.      
  492.      
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.                                                          DATE:12-31-84
  500.                                                          BY:BOYD
  501.                                                          DOC #:  19.0000
  502.  
  503.      FUNCTION NAME:locate_window(wind,row,col)
  504.  
  505.      SYNOPSIS:
  506.                ARGUMENT(S):                            ARGUMENT DESC:
  507.  
  508.      locate_window(wind,row,col);
  509.  
  510.      int           wind,            /* Valid window ID number */ 
  511.                    row, 
  512.                    col;             /* Row and column to place cursor 
  513.                                        inside window */ 
  514.      
  515.      
  516.      
  517.      
  518.  
  519.      DESCRIPTION:
  520.  
  521.      This function will place the cursor to the specified row and 
  522.      column in the window specified.  The cursor position is relative 
  523.      to the window.  For example locate_window(wind,1,1) will locate in 
  524.      the upper left corner of the window not the upper left corner of 
  525.      the screen. 
  526.      
  527.      
  528.  
  529.      RETURNS:
  530.  
  531.      NOTHING 
  532.      
  533.      
  534.  
  535.      CAUTIONS:
  536.  
  537.      This function does no checking for bogus arguments. 
  538.      
  539.      
  540.  
  541.      SAMPLE CALL:
  542.  
  543.      main() 
  544.      { 
  545.            int   wind; 
  546.                     wind=open_window(10,10,20,70); 
  547.                     locate_window(wind,5,10); 
  548.                     close_window(wind); 
  549.       
  550.      }
  551.      
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.                                                          DATE:12-30-84
  559.                                                          BY:BOYD
  560.                                                          DOC #:  20.0000
  561.  
  562.      FUNCTION NAME:print_window(wind,string)
  563.  
  564.      SYNOPSIS:
  565.                ARGUMENT(S):                            ARGUMENT DESC:
  566.  
  567.      print_window(wind,string);
  568.  
  569.      int           wind;               /* Valid window ID number */ 
  570.      char          *string;            /* Address of string constant */ 
  571.       
  572.      
  573.      
  574.      
  575.      
  576.      
  577.  
  578.      DESCRIPTION:
  579.  
  580.      This function will print out the string constant with the current 
  581.      color of the window, not the default color().  The function 
  582.      supports the following imbedded command characters for output. 
  583.                          \n   specifies a new line 
  584.                          \r   specifies a return without linefeed 
  585.                          \t   tabs over 10 spaces from cursor position 
  586.                          \f   cause the window to be scrolled / cleared
  587.  
  588.      RETURNS:
  589.  
  590.      NOTHING 
  591.      
  592.      
  593.  
  594.      CAUTIONS:
  595.  
  596.      This function can only print string constants or valid string that 
  597.      are terminated with a '\0'. 
  598.      
  599.  
  600.      SAMPLE CALL:
  601.  
  602.      main() 
  603.      { 
  604.         int   wind; 
  605.                   wind=open_window(10,10,20,70); 
  606.                      locate_window(wind,5,10); 
  607.                      print_window(wind,"This is a \n sample strng \n"); 
  608.                      close_window(wind); 
  609.      } 
  610.      
  611.      
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.                                                          DATE:12-30-84
  619.                                                          BY:BOYD
  620.                                                          DOC #:  21.0000
  621.  
  622.      FUNCTION NAME:cls_window(wind)
  623.  
  624.      SYNOPSIS:
  625.                ARGUMENT(S):                            ARGUMENT DESC:
  626.  
  627.      cls_window(wind);
  628.  
  629.      int          wind;                  /* Valid window ID number */ 
  630.       
  631.      
  632.      
  633.      
  634.      
  635.      
  636.      
  637.  
  638.      DESCRIPTION:
  639.  
  640.      This function will blank out the inside of the specified window.  
  641.      It uses the current color of the window not the default color.
  642.      
  643.      
  644.      
  645.      
  646.      
  647.  
  648.      RETURNS:
  649.  
  650.      NOTHING 
  651.      
  652.      
  653.  
  654.      CAUTIONS:
  655.  
  656.      This function does not check for bogus arguments.
  657.      
  658.      
  659.  
  660.      SAMPLE CALL:
  661.  
  662.      main() 
  663.      { 
  664.            int    wind; 
  665.                   wind=open_window(10,10,20,70); 
  666.                   print_window(wind,"This is a sample string "); 
  667.                   cls_window(wind); 
  668.                   close_window(wind); 
  669.       
  670.      } 
  671.       
  672.      
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.                                                          DATE:12-30-84
  680.                                                          BY:BOYD
  681.                                                          DOC #:  22.0000
  682.  
  683.      FUNCTION NAME:color_window(wind,foregroung,background)
  684.  
  685.      SYNOPSIS:
  686.                ARGUMENT(S):                            ARGUMENT DESC:
  687.  
  688.      color_window(wind,foreground,background);
  689.  
  690.      int            wind,             /* Valid window ID numer */ 
  691.                     foreground, 
  692.                     background;       /* fore & back ground colors */ 
  693.      
  694.      
  695.      
  696.      
  697.      
  698.  
  699.      DESCRIPTION:
  700.  
  701.      This function will change the default colors for the specified 
  702.      window.  When a window is open it is give the current default 
  703.      color which was specified with the last color() funtion.  This 
  704.      function will change what this default color is to the new 
  705.      specified color. 
  706.      
  707.      
  708.  
  709.      RETURNS:
  710.  
  711.      NOTHING 
  712.      
  713.      
  714.  
  715.      CAUTIONS:
  716.  
  717.      This function does no checking for bogus data. 
  718.      
  719.      
  720.  
  721.      SAMPLE CALL:
  722.  
  723.      main() 
  724.      { 
  725.          int    wind; 
  726.                 wind=open_window(10,10,20,70); 
  727.                    print_window(wind,"This is in default color \n\n"); 
  728.                    color_window(wind,2,0); 
  729.                    print_window(wind,"This is in the new color "); 
  730.                    close_window(wind); 
  731.       
  732.      } 
  733.      
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.                                                          DATE:12-30-84
  741.                                                          BY:BOYD
  742.                                                          DOC #:  22.0000
  743.  
  744.      FUNCTION NAME:move_window(wind,direction)
  745.  
  746.      SYNOPSIS:
  747.                ARGUMENT(S):                            ARGUMENT DESC:
  748.  
  749.      move_window(wind,direction);
  750.  
  751.      int         wind,             /*  Valid window ID number */ 
  752.                  direction;        /*  1 == upward 
  753.                                        2 == to the right 
  754.                                        3 == downward 
  755.                                        4 == to the left */ 
  756.      
  757.      
  758.      
  759.  
  760.      DESCRIPTION:
  761.  
  762.      This function will float the specified window around the screen in 
  763.      the direction which is specified in the supplied argument.  The 
  764.      window will move 1 space at a time in the specified direction. 
  765.      
  766.      
  767.      
  768.      
  769.  
  770.      RETURNS:
  771.  
  772.      NOTHING 
  773.      
  774.      
  775.  
  776.      CAUTIONS:
  777.  
  778.      This function does no checking for bogus arguments. 
  779.      
  780.      
  781.  
  782.      SAMPLE CALL:
  783.  
  784.      main() 
  785.      { 
  786.          int    wind; 
  787.                     wind=open_window(10,10,20,70); 
  788.                          move_window(wind,3); 
  789.                          close_window(wind); 
  790.       
  791.      } 
  792.      
  793.      
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.                                                          DATE:12-30-84
  801.                                                          BY:BOYD
  802.                                                          DOC #:  23.0000
  803.  
  804.      FUNCTION NAME:cls()
  805.  
  806.      SYNOPSIS:
  807.                ARGUMENT(S):                            ARGUMENT DESC:
  808.  
  809.      cls();
  810.  
  811.                 /*  No arguments */ 
  812.      
  813.      
  814.      
  815.      
  816.      
  817.      
  818.      
  819.  
  820.      DESCRIPTION:
  821.  
  822.      This function will blank the screen using the color which was last 
  823.      specified with a color() function call.  If no color has been 
  824.      specified then it will take the default color of white on black.  
  825.      This function works independent of the window utilities and will 
  826.      blank the whole screen even if there are windows on the screen. 
  827.      
  828.      
  829.  
  830.      RETURNS:
  831.  
  832.      NOTHING 
  833.      
  834.      
  835.  
  836.      CAUTIONS:
  837.  
  838.      Will blank the screen no matter what is on it. 
  839.      
  840.      
  841.  
  842.      SAMPLE CALL:
  843.  
  844.      main() 
  845.      { 
  846.          color(3,0); 
  847.          cls(); 
  848.       
  849.      } 
  850.      
  851.      
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.                                                          DATE:12-30-84
  859.                                                          BY:BOYD
  860.                                                          DOC #:  24.0000
  861.  
  862.      FUNCTION NAME:color(foreground,background)
  863.  
  864.      SYNOPSIS:
  865.                ARGUMENT(S):                            ARGUMENT DESC:
  866.  
  867.      color(foreground,background);
  868.  
  869.      int        foreground, 
  870.                 background;           /* Fore & back ground colors 
  871.                                          to make the default colors */ 
  872.      
  873.      
  874.      
  875.      
  876.      
  877.  
  878.      DESCRIPTION:
  879.  
  880.      This function will set the default color for the screen managemnet 
  881.      functions.  Any printing with printf() or any scrolling, or 
  882.      windows which are opened will be set to the last default color 
  883.      which was specified with this function.  If no default color is 
  884.      set then white on black is assumed. 
  885.      
  886.      
  887.  
  888.      RETURNS:
  889.  
  890.      NOTHING 
  891.      
  892.      
  893.  
  894.      CAUTIONS:
  895.  
  896.      
  897.      
  898.      
  899.  
  900.      SAMPLE CALL:
  901.  
  902.      main() 
  903.       
  904.      { 
  905.            color(3,0); 
  906.            cls(); 
  907.            printf("This is in the new color \n\n"); 
  908.            color(7,0); 
  909.            printf("This is in the specified color of white on black"); 
  910.      } 
  911.      
  912.      
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.                                                          DATE:12-30-84
  920.                                                          BY:BOYD
  921.                                                          DOC #:  24.0000
  922.  
  923.      FUNCTION NAME:h_bar(length,character)
  924.  
  925.      SYNOPSIS:
  926.                ARGUMENT(S):                            ARGUMENT DESC:
  927.  
  928.      h_bar(length,character);
  929.  
  930.      int        length,            /* # of characters to print */ 
  931.                 character;         /* ASCII # of character to print */ 
  932.      
  933.      
  934.      
  935.      
  936.      
  937.      
  938.  
  939.      DESCRIPTION:
  940.  
  941.      This function will print the specified character the specified 
  942.      number of times starting at the current cursor location and ending 
  943.      up where it stops. 
  944.      
  945.      
  946.      
  947.      
  948.  
  949.      RETURNS:
  950.  
  951.      NOTHING 
  952.      
  953.      
  954.  
  955.      CAUTIONS:
  956.  
  957.      This function does not check for right margin overflow, do not 
  958.      print more characters than are columns left on the screen. 
  959.      
  960.  
  961.      SAMPLE CALL:
  962.  
  963.      main() 
  964.      { 
  965.             color(2,0);        /* specify the color for H_bar  */ 
  966.             h_bar(25,65);      /* This will print 25 'A's */ 
  967.       
  968.      } 
  969.      
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.                                                          DATE:12-30-84
  977.                                                          BY:BOYD
  978.                                                          DOC #:  25.0000
  979.  
  980.      FUNCTION NAME:v_bar(height,character)
  981.  
  982.      SYNOPSIS:
  983.                ARGUMENT(S):                            ARGUMENT DESC:
  984.  
  985.      v_bar(height,character);
  986.  
  987.      int          height,           /* Number of characters to print */ 
  988.                   character;        /* ASCII # of character */ 
  989.      
  990.      
  991.      
  992.      
  993.      
  994.      
  995.  
  996.      DESCRIPTION:
  997.  
  998.      This funtion will print a vertical bar specified with the 
  999.      specified height.  This funtion will start printing at the current 
  1000.      cursor location and print downwards to form a vertical bar of the 
  1001.      specified character. 
  1002.      
  1003.      
  1004.      
  1005.  
  1006.      RETURNS:
  1007.  
  1008.      NOTHING 
  1009.      
  1010.      
  1011.  
  1012.      CAUTIONS:
  1013.  
  1014.      This function does not check for end of screen.  Do not pass a 
  1015.      height which is greater than the number of rows left on the 
  1016.      screen.
  1017.  
  1018.      SAMPLE CALL:
  1019.  
  1020.      main() 
  1021.      { 
  1022.       
  1023.            color(4,0); 
  1024.            v_bar(10,65);           /*  Prints a bar of 'A's with a  
  1025.                                        height of 10 */ 
  1026.       
  1027.      } 
  1028.      
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.                                                          DATE:12-30-84
  1036.                                                          BY:BOYD
  1037.                                                          DOC #:  26.0000
  1038.  
  1039.      FUNCTION NAME:place(character)
  1040.  
  1041.      SYNOPSIS:
  1042.                ARGUMENT(S):                            ARGUMENT DESC:
  1043.  
  1044.      place(character);
  1045.  
  1046.      int         character;         /* ASCII # of character to print */ 
  1047.      
  1048.      
  1049.      
  1050.      
  1051.      
  1052.      
  1053.      
  1054.  
  1055.      DESCRIPTION:
  1056.  
  1057.      This function will place the specified character at the current 
  1058.      cursor location.  It will use the default color which was 
  1059.      specified in the last call to color(). 
  1060.      
  1061.      
  1062.      
  1063.      
  1064.  
  1065.      RETURNS:
  1066.  
  1067.      NOTHING 
  1068.      
  1069.      
  1070.  
  1071.      CAUTIONS:
  1072.  
  1073.       
  1074.      
  1075.      
  1076.  
  1077.      SAMPLE CALL:
  1078.  
  1079.      main() 
  1080.      { 
  1081.       
  1082.             place(65);                     /*  places a 'A' at the 
  1083.                                                current cursor location 
  1084.                                            */ 
  1085.       
  1086.      }
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.                                                          DATE:12-30-84
  1095.                                                          BY:BOYD
  1096.                                                          DOC #:  27.0000
  1097.  
  1098.      FUNCTION NAME:locate(row,col)
  1099.  
  1100.      SYNOPSIS:
  1101.                ARGUMENT(S):                            ARGUMENT DESC:
  1102.  
  1103.      locate(row,col);
  1104.  
  1105.      int           row, 
  1106.                    col;               /* row and column to place the 
  1107.                                          cursor at */ 
  1108.      
  1109.      
  1110.      
  1111.      
  1112.      
  1113.  
  1114.      DESCRIPTION:
  1115.  
  1116.      This function will locate the cursor at the specified row and 
  1117.      column positions.  This function is independent of the window 
  1118.      functions and will place the cursor at the physical row and column 
  1119.      which is passed to it. 
  1120.      
  1121.      
  1122.      
  1123.  
  1124.      RETURNS:
  1125.  
  1126.      NOTHING 
  1127.      
  1128.      
  1129.  
  1130.      CAUTIONS:
  1131.  
  1132.      
  1133.      
  1134.      
  1135.  
  1136.      SAMPLE CALL:
  1137.  
  1138.      main() 
  1139.      { 
  1140.            locate(10,10); 
  1141.            printf("This will print a column 10 row 10 "); 
  1142.      } 
  1143.      
  1144.      
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.                                                          DATE:12-30-84
  1152.                                                          BY:BOYD
  1153.                                                          DOC #:  28.0000
  1154.  
  1155.      FUNCTION NAME:printf(args);
  1156.  
  1157.      SYNOPSIS:
  1158.                ARGUMENT(S):                            ARGUMENT DESC:
  1159.  
  1160.      printf(args);
  1161.  
  1162.      char     *args;           /* Optional arguments */ 
  1163.      
  1164.      
  1165.      
  1166.      
  1167.      
  1168.      
  1169.      
  1170.  
  1171.      DESCRIPTION:
  1172.  
  1173.      This function is identical to the standard printf except this 
  1174.      function is written entirely in ASSEMBLY for speed.  This function 
  1175.      will print in the default color which was last specifed in a call 
  1176.      to color(). 
  1177.      
  1178.      
  1179.      
  1180.  
  1181.      RETURNS:
  1182.  
  1183.      NOTHING 
  1184.      
  1185.      
  1186.  
  1187.      CAUTIONS:
  1188.  
  1189.      This function does not support the DOS redirection capabilities.  
  1190.      This function is Aproximately 50 X's faster than the old printf(); 
  1191.      
  1192.  
  1193.      SAMPLE CALL:
  1194.  
  1195.      main() 
  1196.      { 
  1197.            locate(10,10); 
  1198.            color(5,0); 
  1199.            printf("This is a example of printf "); 
  1200.      } 
  1201.       
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.                                                          DATE:12-30-84
  1209.                                                          BY:BOYD
  1210.                                                          DOC #:  29.0000
  1211.  
  1212.      FUNCTION NAME:scroll(u_row,u_col,l_row,l_col,lines,direction)
  1213.  
  1214.      SYNOPSIS:
  1215.                ARGUMENT(S):                            ARGUMENT DESC:
  1216.  
  1217.      scroll(u_row,u_col,l_row,l_col,lines,direction);
  1218.  
  1219.      int         u_row,            /*  upper left corner of window */ 
  1220.                  u_col, 
  1221.                  l_row,            /*  lower right corner of window */ 
  1222.                  l_col, 
  1223.                  lines,            /*  # of lines to scroll */ 
  1224.                  direction;        /*  0 == up     1 == down */ 
  1225.      
  1226.      
  1227.  
  1228.      DESCRIPTION:
  1229.  
  1230.      This function will scroll the specified area on the screen up or 
  1231.      down or will blank it if 0 lines are passed.  This function is 
  1232.      indenpendent of the window functions and will scroll whatever is 
  1233.      on the screen in the specified positions.  The color which is used 
  1234.      in the scroll is the default color which was specified in the last 
  1235.      color() function call. 
  1236.      
  1237.  
  1238.      RETURNS:
  1239.  
  1240.      NOTHING 
  1241.      
  1242.      
  1243.  
  1244.      CAUTIONS:
  1245.  
  1246.      
  1247.      
  1248.      
  1249.  
  1250.      SAMPLE CALL:
  1251.  
  1252.      main() 
  1253.      { 
  1254.       
  1255.           scroll(10,10,20,70,4,0);       /* scrolls the specified  
  1256.                                             window up 4 lines */ 
  1257.      }
  1258.  
  1259.